import request from '@/network/service_model.js'
import requestsso from '@/network/auth_sso.js'
export default {

    getList(pageNum,pageSize,search,mdosName){
        return requestsso({
            url: '/order/shop/getOrderList',
            method:'get',
            params: {pageNum,pageSize,search,mdosName}
        })
    },

    getById(id){
        return requestsso({
            url: '/order/shop/getById',
            method:'get',
            params: {id}
        })
    },

    // buyGoods(id){
    //     return requestsso({
    //         url: '/order/bugGoods',
    //         method:'get',
    //         params: {id}
    //     })
    // },
    pay(id){
        return requestsso({
            url: '/order/shop/pay',
            method:'get',
            params: {id}
        })
    },
    deleteById(id){
        return requestsso({
            url: '/order/shop/deleteById',
            method:'delete',
            params: {id}
        })
    }
}